package cn.terminus.client.customer.userrecordinfo.service;

import java.util.Date;

import cn.terminus.client.customer.userrecordinfo.param.UserRecordInfoNewParam;
import cn.terminus.client.customer.userrecordinfo.param.UserRecordInfoEditParam;
import cn.terminus.client.customer.userrecordinfo.param.UserRecordInfoQueryParam;
import cn.terminus.client.customer.userrecordinfo.param.UserRecordInfoDeleteParam;
import cn.terminus.client.customer.userrecordinfo.param.UserRecordInfoGetsParam;
import cn.terminus.client.customer.userrecordinfo.result.UserRecordInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (UserRecordInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:19:11
 */
public interface UserRecordInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(UserRecordInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(UserRecordInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<UserRecordInfoResult>> gets(UserRecordInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(UserRecordInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<UserRecordInfoResult>> query(UserRecordInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<UserRecordInfoResult>> page(UserRecordInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
